package cn.yunhe.service.serviceImpl;

import cn.yunhe.dao.MemberDao;
import cn.yunhe.entity.Member;
import cn.yunhe.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MemberServiceImpl implements MemberService {
   @Autowired
   private MemberDao memberDao;
    @Override
    public List<Member> findAll() {
        return memberDao.findAll();
    }

    @Override
    public Member selectById(Integer id) {
        return memberDao.selectById(id);
    }

    @Override
    public void InsertMember(Member member) {
        memberDao.insertMember(member);
    }

    @Override
    public void deleteMember(Integer id) {
        memberDao.deleteMember(id);
    }

}
